<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>H+ 后台主题UI框架 - 基本表单</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description"
	content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

<link rel="shortcut icon" href="favicon.ico">
<link href="${ctx}/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="${ctx}/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="${ctx}/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="${ctx}/css/animate.css" rel="stylesheet">
<link href="${ctx}/css/style.css?v=4.1.0" rel="stylesheet">
<!-- 全局js -->
<script src="${ctx}/js/jquery.min.js?v=2.1.4"></script>
<script src="${ctx}/js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js -->
<script src="${ctx}/js/content.js?v=1.0.0"></script>
<script src="${ctx}/task/ChangeTask.js"></script>

<!-- iCheck -->
<script src="${ctx}/js/plugins/iCheck/icheck.min.js"></script>

<!-- 引入日历插件js文件 -->
<script src="${ctx}/js/plugins/layer/laydate/laydate.js"></script>

<!-- 引入 Jquery.validate.js 表单验证框架 -->
<script src="${ctx}/js/jquery.validate.min.js"></script>
<script src="${ctx}/js/messages_zh.min.js"></script>

<!-- 引入弹框插件 layer  -->
<script src="${ctx}/js/plugins/layer/layer.min.js"></script>

<style type="text/css">
.msgErrorStyle {
	background: red;
	font-size: 20px;
}
</style>

</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-8">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>修改任务详情</h5>
						<div class="ibox-tools">
							<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
							</a> <a class="dropdown-toggle" data-toggle="dropdown"
								href="form_basic.html#"> <i class="fa fa-wrench"></i>
							</a>
							<ul class="dropdown-menu dropdown-user">
								<li><a href="form_basic.html#">选项1</a></li>
								<li><a href="form_basic.html#">选项2</a></li>
							</ul>
							<a class="close-link"> <i class="fa fa-times"></i>
							</a>
						</div>
					</div>
					<div class="ibox-content">
							<form class="form-horizontal" action="" method="post" id="regForm">
							<div class="form-group" style="display:none">
								<label class="col-sm-3 control-label">任务id：</label>
								<div class="col-sm-3">
									<span type="text" class="help-block m-b-none" id="taskId">${task.taskId}</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">原任务标题：</label>
								<div class="col-sm-3">
									<span class="help-block m-b-none" style="color:blue">${task.taskTitle}</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">新任务标题：</label>
								<div class="col-sm-3">
									<input type="text" name="taskTitle" id="taskTitle" class="form-control">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">原完成时间：</label>
								<div class="col-sm-3">
									<span class="help-block m-b-none" style="color:blue" readonly="readonly">${task.beginTime} -- ${task.endTime}</span>
								</div>
							</div>
														
							<div class="form-group">
								<label class="col-sm-3 control-label">新完成时间：</label>
								<div class="col-sm-3">
									<input type="text" id="beginTime" name="beginTime" class="laydate-icon form-control layer-date" onclick="laydate({elem: '#beginTime'});">
									--
									<input type="text" id="endTime" name="endTime" class="laydate-icon form-control layer-date" onclick="laydate({elem: '#endTime'});">
								</div>
								<label class="col-sm-3 control-label"></label>
								<div class="col-sm-3">
									<span id="regTable"></span>
								</div>
							</div>
											
							<div class="form-group">
								<label class="col-sm-3 control-label" style="color:blue">原执行人员：</label>
								<div class="col-sm-3">
									<span class="help-block m-b-none" style="color:blue" readonly="readonly">${task.clerk}</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">新执行人员：</label>
								<div class="col-sm-3">
									<input type="text" name="clerk" id="clerk" class="form-control">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label" style="color:blue">原紧急程度：</label>
								<div class="col-sm-3">
									<span class="help-block m-b-none" style="color:blue" readonly="readonly">${task.rushStatus eq 0 ? "一般": (task.rushStatus eq 1 ? "紧急":"重大")}</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">新紧急程度：</label>
								<div class="col-sm-3">
									<input type="checkbox" id="inlineRadio1" >
									<label> 一般 </label>
									<input type="checkbox" id="inlineRadio2">
									<label> 紧急 </label>
									<input type="checkbox" id="inlineRadio3">
									<label> 重大 </label>
									<input type="text" name="rushStatus" id="rushStatus" class="form-control" style="display:none">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label" style="color:blue">原任务内容：</label>
								<div class="col-sm-3">
									<span class="help-block m-b-none" style="color:blue" readonly="readonly">${task.taskContent}</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">新任务内容：</label>
								<div class="col-sm-3">
									<textarea type="text" name="taskContent" id="taskContent"class="form-control"></textarea>
								</div>
							</div>
						
							<div class="form-group">
								<div class="col-sm-offset-3 col-sm-8">
									<button id="submit" class="btn btn-sm btn-primary" type="submit">确认修改</button>
									<button class="btn btn-sm " type="reset">重置</button>
									<button class="btn btn-sm btn-warning" type="reset" onclick="javascript:window.history.go(-1)">取消返回</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>


	</div>


</body>

</html>
